package fr.esiag.projet17.form;
import javax.swing.*;

import java.awt.*;
 
class NextPage extends JFrame
{

	private JLabel label;
	
	NextPage(String login)
 	{
		
		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
		setTitle("Bienvenue");
		setLocationRelativeTo(null);
		setVisible(true);
		setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE);
		label = new JLabel("Bienvenue : "+login);
		getContentPane().add(label);
		setAlwaysOnTop(true);
		setSize(400, 200);
	    
	}
 }